package com.zm.zmgz.utils;

import java.util.Objects;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: cjw
 * @Date: 2020/05/21/19:23
 * @Description:
 */
public class ObjectsUtils {

    /***
     * @Description: null 返回 0
     * @Param:
     * @return:
     * @Author: cjw
     * @Date: 2020-05-21 19:24:23
     */
    public static Object nullToZero(Object o) {
        if (Objects.isNull(o))
            return 0;
        else
            return o;
    }

}
